<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <body>
    <h1><%= title %></h1>
    <p>Welcome to <%= title %></p>
    <img src="http://c.com:3000/cookies/set/" style="display:none;" />
    <!-- <script src="http://a.com:3001/cookies/set/"></script> -->
    <!-- <img src="http://a.com:3001/cookies/set/" style="display:none;" /> -->
    <!-- <img src="http://b.com:3002/cookies/set/" style="display:none;" /> -->
    <!-- <iframe src="http://b.com:3002/cookies/set/" frameborder="0"></iframe> -->

    <script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.js"></script>
    <script>
        // 获取远端图片
        axios({
            method:'get',
            url:'http://a.com:3001/cookies/set/',
            withCredentials: true
        })
        .then(function(response) {
            alert(document.cookie)
        });
    </script>
    <script>
      // 获取远端图片
      axios({
          method:'get',
          url:'http://b.com:3002/cookies/set/',
          withCredentials: true
      })
      .then(function(response) {
          alert(document.cookie)
      });
  </script>
    
  </body>
</html>
